
<template>
  <div  class="search">
    <Card>
      <el-button type="primary" @click="retry(1)">重试生成宣讲会详情二维码</el-button>
      <el-button type="primary" @click="retry(2)">重试生成双选会位详二维码</el-button>
      <el-button type="primary" @click="retry(3)">重试生成职位详情二维码</el-button>
      <el-button type="primary" @click="retry(4)">重试生成单位详情二维码 </el-button>
    </Card>
  </div>
</template>
<script >
import { getHandlerCareertalk, getHandlerDouble, getHandlerPosition,getHandlerUnit } from '@/api/fail';
  export default {
    methods:{
      async retry(index){
        let res = {}
        if (index==1){
          res =await getHandlerCareertalk()
        }
        if (index==2){
          res =await getHandlerDouble()
        }
        if (index==3){
          res =await getHandlerPosition()
        }
        if (index==4){
          res =await getHandlerUnit()
        }
        console.log(res,8);
        if (res.code==200){
          this.$message.success('生成成功')
        }
      }
    }
  }
</script>

<style scoped lang="less">

</style>